<!--
 * @FilePath     : /study_code/css/contain4 copy.html
 * @Description  : d5
 * @Date         : 2025-04-28 14:32:30
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-28 14:32:30
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <div style="contain: inline-size; display: inline-block; background-color: bisque">
      我是父元素
      <div style="width: 100px; background-color: coral">我是子元素</div>
    </div>
    <div style="background-color: lightpink">我是父兄弟元素</div>

  </body>
</html>
